package com.attendance.www.hr.service;

import java.util.List;

import com.attendance.www.hr.beans.AnnouncementBean;
import com.attendance.www.hr.beans.AnnouncementPageBean;

public interface IAnnouncementService {

	/**
	 * 新增公告
	 * @param announcementBean
	 * @return
	 */
	public boolean saveAnnouncement(AnnouncementBean announcementBean);
	
	/**
	 * 删除公告
	 * @param announcementId
	 * @return
	 */
	public boolean deleteAnnouncement(String id);
	
	/**
	 * 修改公告
	 * @param announcementBean
	 * @return
	 */
	public boolean updateAnnouncement(AnnouncementBean announcementBean);
	
	/**
	 * 查询公告信息(管理员界面)
	 * @param announcementBean
	 * @return
	 */
	public AnnouncementPageBean getAnnouncementList(AnnouncementBean announcementBean);
	
	/**
	 * ID查询公告栏
	 * @param id
	 * @return
	 */
	public AnnouncementBean getAnnouncementById(Integer id);
	
	/**
	 * 停用公告
	 * @param announcementId
	 * @return
	 */
	public boolean isDeactivateAnnouncement(String id,String isDeactivate);
	
	/**
	 * 查询公告信息(用户界面) 
	 * @return
	 */
	public List<AnnouncementBean> getAnnouncementListByExpireDate();
	
}
